﻿namespace Maple.Weixin.MP.Entities.Menus
{
    public sealed class ClickMenu : SingleMenu
    {
        public ClickMenu(string name, string key)
            : base(name) {
            this.Key = key;
        }

        #region Overrides of MenuBase

        protected internal override object ToJsonObject() {
            var entity = new
            {
                type = "click",
                name = Name,
                key = Key
            };
            return entity;
        }

        #endregion

        public string Key { get; private set; }
    }
}
